
<html style="width: 100%;height: 100%;">
    <head>
          <meta http-equiv="content-type" content="text/html;charset=utf-8">
          <title>
            申请详情填写
          </title>
    </head>
    <body style="width: 100%;height: 100%;">
        <script>
            //alert("lalalal的沙发上");
            //alert(sessionStorage.getItem("item")) ;
            window.onload=function (){
                //alert("dsjdhsakj");
                var form_add=document.getElementById("form_add");
                var nowtime=document.getElementById("nowtime");
                var stuffno=document.getElementById("stuffno");


                var button_submit=document.getElementById("button_submit");
                button_submit.onclick=function (){
                    var time=new Date();
                    nowtime.value=time.toLocaleString();
                    window.eval("var stuff="+sessionStorage.getItem("stuff"));
                    stuffno.value=stuff.staffno;
                    //alert(nowtime.value);
                    form_add.submit();
                }

            }
        </script>

        <div style="width: 40%; margin-left: 30%;height: 100%; border-style: solid;border-color: gray;border-width: 1px;">
              <form action="/approvalProcess/approvalAdd" method="post" id="form_add">
                  <input type="hidden" id="nowtime" name="nowtime" >
                  <input type="hidden" id="stuffno" name="stuffno" >

                  <table style="width: 100%;height: 80%;"   >
                      <tr style="height: 20%;" >
                          <th colspan="2">申请项填写</th></tr>

                      <tr style="height: 30%;">
                          <td style="width: 50%;padding-left: 25%;">申 &nbsp;请&nbsp;名:</td>
                          <td  style="width: 50%;"><select name="approvalName" id="">
                              <option value="项目申请">项目申请</option>
                              <option value="生活补贴">生活补贴</option>
                               </select>
                          </td>
                      </tr>

                      <tr style="height: 40%;">
                          <td style="padding-left: 25%;">申&nbsp;请&nbsp;详&nbsp;细:</td>
                          <td > <textarea name="approvalDetail"  cols="30" rows="10"></textarea></td>
                      </tr>
                      <tr style="height: 10%">
                          <th colspan="2"><input type="button" value="提交" id="button_submit"></th>
                      </tr>

                  </table>
              </form>
        </div>
    </body>
</html>